package com.globant.rdm.iod;

import org.hibernate.ejb.event.EJB3PostLoadEventListener;
import org.hibernate.event.PostLoadEvent;

import com.globant.rdm.iod.guice.GuiceAwareDomainObjectInjector;

public class DependenciesInjector extends EJB3PostLoadEventListener {

	/**
	 * Serial UID.org.hibernate.ejb.event.EJB3PostLoadEventListener
	 */
	private static final long serialVersionUID = 3922534294610716675L;

	@Override
	public void onPostLoad(final PostLoadEvent event) {
		GuiceAwareDomainObjectInjector.getInstance().resolveDependencies(event.getEntity());
	}

}
